home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / bsrc_p2.arc / SCHED.H < prev    next >
Encoding:
C/C++ Source or Header  |  1988-11-30  |  3.7 KB  |  69 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software <no-Inc>                   */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          No-Cost<no-tm> Software.                       */
  7. /*        \ 1011 /                                                          */
  8. /*         ------            KopyRong (K) 1987.  ALL RIGHTS REVERSED.       */
  9. /*                                                                          */
  10. /*                                                                          */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*   This  software  package is being distributed WITH FULL SOURCE CODE     */
  14. /*   with the  following  conditions:    1)  If  anything awful happens     */
  15. /*   because  you  use    it   (or  don't  use  it),  you  accept  full     */
  16. /*   responsibility;  2) you  don't start making tons of voice calls to     */
  17. /*   the authors to complain or  make  suggestions  about enhancements,     */
  18. /*   useful or otherwise;  3) you  do not reuse this code in commercial     */
  19. /*   products without specific permission to do so  from  the  authors;     */
  20. /*   4) If you find any problems you send  fixes  to  the  authors  for     */
  21. /*   inclusion  in  updates;    5) You find some way  to  express  your     */
  22. /*   appreciation  for  this  method of distribution, either by writing     */
  23. /*   code or  application  notes,  or  just sending along a "Thank You"     */
  24. /*   message.                                                               */
  25. /*                                                                          */
  26. /*   There is  copyrighted  code  in  this product.  We either wrote it     */
  27. /*   ourselves or got  permission  to use it.  Please don't force us to     */
  28. /*   pay a lawyer --  have some respect for our motives and don't abuse     */
  29. /*   this "license".                                                        */
  30. /*                                                                          */
  31. /*                                                                          */
  32. /*--------------------------------------------------------------------------*/
  33.  
  34.  
  35. /* Definitions for day of the week */
  36. #define DAY_SUNDAY      0x01
  37. #define DAY_MONDAY      0x02
  38. #define DAY_TUESDAY     0x04
  39. #define DAY_WEDNESDAY   0x08
  40. #define DAY_THURSDAY    0x10
  41. #define DAY_FRIDAY      0x20
  42. #define DAY_SATURDAY    0x40
  43. #define DAY_UNUSED      0x80
  44.  
  45. #define DAY_WEEK  (DAY_MONDAY|DAY_TUESDAY|DAY_WEDNESDAY|DAY_THURSDAY|DAY_FRIDAY)
  46. #define DAY_WKEND (DAY_SUNDAY|DAY_SATURDAY)
  47.  
  48. /* Definitions for matrix behavior */
  49. #define MAT_CM          0x0001
  50. #define MAT_DYNAM       0x0002
  51. #define MAT_BBS         0x0004
  52. #define MAT_NOREQ       0x0008
  53. #define MAT_OUTONLY     0x0010
  54. #define MAT_NOOUT       0x0020
  55. #define MAT_FORCED      0x0040
  56. #define MAT_LOCAL       0x0080
  57. #define MAT_SKIP        0x0100
  58.  
  59. typedef struct _event {
  60.    int days;            /* Bit field for which days to execute */
  61.    int minute;          /* Minutes after midnight to start event */
  62.    int length;          /* Number of minutes event runs */
  63.    int errlevel[5];     /* Errorlevel exits */
  64.    int last_ran;        /* Day of month last ran */
  65.    int behavior;        /* Behavior mask */
  66.    int wait_time;       /* Average number of seconds to wait between dials */
  67.    int extra[5];        /* Extra space for later */
  68. } EVENT;
  69.